import React from 'react';
import { Route } from 'react-router-dom';

import ErrorBoundaryRoutes from 'app/shared/error/error-boundary-routes';

import ProjectBaseInfo from './project-base-info';
import ProjectBaseInfoDetail from './project-base-info-detail';
import ProjectBaseInfoUpdate from './project-base-info-update';
import ProjectBaseInfoDeleteDialog from './project-base-info-delete-dialog';

const ProjectBaseInfoRoutes = () => (
  <ErrorBoundaryRoutes>
    <Route index element={<ProjectBaseInfo />} />
    <Route path="new" element={<ProjectBaseInfoUpdate />} />
    <Route path=":id">
      <Route index element={<ProjectBaseInfoDetail />} />
      <Route path="edit" element={<ProjectBaseInfoUpdate />} />
      <Route path="delete" element={<ProjectBaseInfoDeleteDialog />} />
    </Route>
  </ErrorBoundaryRoutes>
);

export default ProjectBaseInfoRoutes;
